#ifndef PORT_CFG_H
#define PORT_CFG_H

#include "Platform_Types.h"


typedef struct //TODO
{
	int a;
}Port_ConfigType;

/************************************************************
 * S32K146_64 pins number
 * PTA: 0~13, total 14
 * PTB: 0~13, total 14
 * PTC: 0~17, total 18
 * PTD: 0~16, total 17
 * PTE: 0~11, total 12
 ***********************************************************/ 
#define PTA_NUMS        14
#define PTB_NUMS        14
#define PTC_NUMS        18
#define PTD_NUMS        17
#define PTE_NUMS        12

#define PTD4            (PTA_NUMS + PTB_NUMS + PTC_NUMS + 4)
#define PTD7            (PTA_NUMS + PTB_NUMS + PTC_NUMS + 7)
#define GPIO_LED         (uint8)PTD4
#define GPIO_LIN_EN      (uint8)PTD7


typedef enum
{
    PORT_PIN_DISABLED_ = 0,  /**< @brief No settings: the pin is not available. */
    PORT_PIN_IN,            /**< @brief Sets port pin as input. */
    PORT_PIN_OUT,            /**< @brief Sets port pin as output. */
    PORT_PIN_HIGH_Z         /**< @brief Sets port pin as high-Z. */
} Port_PinDirectionType;

typedef uint32 Port_PinType;
typedef uint8 Port_PinModeType;


#endif
